<div class="ui masthead vertical segment">
  <div class="ui container">
    <div class="introduction">

      <h1 class="ui header">
        Search

        <div class="sub header">
          A search module allows a user to query for results from a selection of data
        </div>
      </h1>

      <div class="ui hidden divider"></div>

      <p>
        For additional documentation on how to configure this module, please refer to the {{#link-to 'modules.index'}}Getting Started{{/link-to}} section and Semantic UI's module specific external documentation links below.
      </p>

      <div class="ui four item stackable tabs menu">
        <a class="item" href="http://semantic-ui.com/modules/search.html" target="_blank">Definition</a>
        <a class="item" href="http://semantic-ui.com/modules/search.html#/examples" target="_blank">Examples</a>
        <a class="item" href="http://semantic-ui.com/modules/search.html#/usage" target="_blank">Usage</a>
        <a class="item" href="http://semantic-ui.com/modules/search.html#/settings" target="_blank">Settings</a>
      </div>

    </div>

  </div>
</div>

<div class="ui main container">

  <div class="ui segment">
    <div class="ui small header">Callback info</div>
    <p>
      Searching for: {{query}}
    </p>

    <p>
      Selected: {{selected.title}}
    </p>
  </div>

  {{#ui-example
    header="Simple Example"
    subHeader="Search based on a list"
    as |showing setCopyCode|}}

    {{#ui-html showing=showing}}
      {{#ui-search source=commonPasswords onSearchQuery=(action (mut query)) onSelect=(action (mut selected))}}
        <input class="prompt" type="text" placeholder="Common passwords...">
        <div class="results"></div>
      {{/ui-search}}
    {{/ui-html}}

    {{#ui-annotation showing=showing setCopyCode=setCopyCode}}
\{{#ui-search source=commonPasswords onSearchQuery=(action (mut query)) onSelect=(action (mut selected))}}
  <input class="prompt" type="text" placeholder="Common passwords...">
  <div class="results"></div>
\{{/ui-search}}
    {{/ui-annotation}}

  {{/ui-example}}

</div>
